from django.conf.urls.defaults import *
from django.conf import settings

urlpatterns = patterns('',
	#(r'^(?P<id>\d+)', 'rpgBoardGame.rpgEngine.views.detail'),

	(r'^$', 'rpgBoardGame.rpgEngine.views.index'),
	(r'^logout/$', 'rpgBoardGame.rpgEngine.views.logoutUser'),
	(r'^character/print/$', 'rpgBoardGame.rpgEngine.views.characterPrint'),
	(r'^character/$', 'rpgBoardGame.rpgEngine.views.character'),
	(r'^messageBox/$', 'rpgBoardGame.rpgEngine.views.messageBox'),
	#display the Message Box, beginning from the beginAt message
	(r'^messageBox/(?P<beginAt>\d+)/$', 'rpgBoardGame.rpgEngine.views.messageBox'),
	(r'^messageBox/notifyRead/(?P<msgId>\d+)/$', 'rpgBoardGame.rpgEngine.views.notifyReadMsg'),
	(r'^inventory/$', 'rpgBoardGame.rpgEngine.views.inventory'),
	(r'^inventory/(?P<beginAt>\d+)/$', 'rpgBoardGame.rpgEngine.views.inventory'),
	(r'^inventory/delItem/(?P<itemId>\d+)/(?P<beginAtRedirect>\d+)/$', 'rpgBoardGame.rpgEngine.views.delInventoryItem'),
	(r'^inventory/editItem/(?P<editId>\d+)/$', 'rpgBoardGame.rpgEngine.views.inventory'),
	(r'^inventory/print/$', 'rpgBoardGame.rpgEngine.views.inventoryPrint'),
	(r'^library/$', 'rpgBoardGame.rpgEngine.views.library'),
	(r'^library/delItem/(?P<itemId>\d+)/$', 'rpgBoardGame.rpgEngine.views.delLibraryItem'),
	(r'^suggestAddr/$', 'rpgBoardGame.rpgEngine.views.suggestAddr'),
	
	(r'^notes/$', 'rpgBoardGame.rpgEngine.views.notes'),
	
	(r'^team/$', 'rpgBoardGame.rpgEngine.views.team'),
	(r'^team/editItem/(?P<editId>\d+)/$', 'rpgBoardGame.rpgEngine.views.team'),
	(r'^team/delItem/(?P<itemId>\d+)/$', 'rpgBoardGame.rpgEngine.views.delchestItem'),
	(r'^team/player/(?P<playerId>\d+)/$', 'rpgBoardGame.rpgEngine.views.teamPlayer'),
	(r'^team/playerForMaster/(?P<playerId>\d+)/$', 'rpgBoardGame.rpgEngine.views.teamPlayerForMaster'),
	(r'^team/playerForMaster/(?P<playerId>\d+)/editItem/(?P<editId>\d+)/$', 'rpgBoardGame.rpgEngine.views.teamPlayerForMaster'),
	(r'^team/playerForMaster/(?P<playerId>\d+)/delItem/(?P<delId>\d+)/$', 'rpgBoardGame.rpgEngine.views.teamPlayerForMaster'),
	(r'^team/playerForMaster/(?P<playerId>\d+)/submitForm/(?P<formName>\w+)/$', 'rpgBoardGame.rpgEngine.views.teamPlayerForMaster'),
	(r'^team/addPlayer/$', 'rpgBoardGame.rpgEngine.views.teamAddPlayer'),

	(r'^gameList/$', 'rpgBoardGame.rpgEngine.views.gameList'),
#	(r'^login/$', 'rpgBoardGame.rpgEngine.views.index'),
#	(r'^login/$', 'django.contrib.auth.views.login', {'template_name': 'rpgEngine/index.html'}),

)
